<?php
/* @var $this RebatecommissionController */
/* @var $model Rebatecommission */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>
	<div class="row">
		<?php echo $form->label($model,'agent_company_id'); ?>
		<?php echo $form->dropDownList($model,'agent_company_id',Rebatecommission::model()->getAllagentId()); ?>
	</div>
	<div class="row">
		<?php echo $form->label($model,'date'); ?>
		<input class="Wdate" type="text" name="Rebatecommission[date]" 
	 value="<?php echo date("Y-m");?>" onClick="WdatePicker({startDate:'%y-%M',dateFmt:'yyyy-MM',alwaysUseStartDate:true})" />
		<?php echo $form->error($model,'reback_time'); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('base', 'search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->